<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyivtbtrasmobCreateDlg" widgetVar="PyivtbtrasmobCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyivtbtrasmobTitle}">

            <h:form id="PyivtbtrasmobCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyivtbtrasmobController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{pyivtbtrasmobController.selected.referencia}" title="#{myBundle.CreatePyivtbtrasmobTitle_referencia}" required="true" requiredMessage="#{myBundle.CreatePyivtbtrasmobRequiredMessage_referencia}"/>

                         <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_pyivtbmobid}" for="pyivtbmobid" />
                        <p:selectOneMenu id="pyivtbmobid" value="#{pyivtbtrasmobController.selected.pyivtbmobid}" required="true" requiredMessage="#{myBundle.EditPyivtbtrasmobRequiredMessage_pyivtbmobid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbmobController.items}"
                                           var="pyivtbmobidItem"
                                           itemValue="#{pyivtbmobidItem}"
                                           itemLabel="#{pyivtbmobidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyivtbmobConverter}"/>
                        </p:selectOneMenu>
                         
                         <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_pyivtbtipotrasid}" for="pyivtbtipotrasid" />
                        <p:selectOneMenu id="pyivtbtipotrasid" value="#{pyivtbtrasmobController.selected.pyivtbtipotrasid}" required="true" requiredMessage="#{myBundle.EditPyivtbtrasmobRequiredMessage_pyivtbtipotrasid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbtipotrasController.items}"
                                           var="pyivtbtipotrasidItem"
                                           itemValue="#{pyivtbtipotrasidItem}"
                                           itemLabel="#{pyivtbtipotrasidItem.pyivtbtipotrasid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbtipotrasConverter}"/>
                        </p:selectOneMenu>
                         
                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_fecha}" for="fecha" />
                        <p:calendar id="fecha" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbtrasmobController.selected.fecha}" title="#{myBundle.EditPyivtbtrasmobTitle_fecha}" required="true" requiredMessage="#{myBundle.EditPyivtbtrasmobRequiredMessage_fecha}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_entregaid}" for="entregaid" />
                        <p:inputText id="entregaid" value="#{pyivtbtrasmobController.selected.entregaid}" title="#{myBundle.CreatePyivtbtrasmobTitle_entregaid}" required="true" requiredMessage="#{myBundle.CreatePyivtbtrasmobRequiredMessage_entregaid}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_recibeid}" for="recibeid" />
                        <p:inputText id="recibeid" value="#{pyivtbtrasmobController.selected.recibeid}" title="#{myBundle.CreatePyivtbtrasmobTitle_recibeid}" required="true" requiredMessage="#{myBundle.CreatePyivtbtrasmobRequiredMessage_recibeid}"/>
                       
                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{pyivtbtrasmobController.selected.scittbescunid}" required="true" requiredMessage="#{myBundle.EditPyivtbtrasmobRequiredMessage_scittbescunid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>
                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbtrasmobController.selected.fecharegistro}" title="#{myBundle.EditPyivtbtrasmobTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyivtbtrasmobRequiredMessage_fecharegistro}" showOn="button"/>
                        
                        <p:outputLabel value="#{myBundle.CreatePyivtbtrasmobLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyivtbtrasmobController.selected.observaciones}" title="#{myBundle.CreatePyivtbtrasmobTitle_observaciones}" />

                       
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyivtbtrasmobController.saveNew}" value="#{myBundle.Save}" update="display,:PyivtbtrasmobListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyivtbtrasmobCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyivtbtrasmobCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
